﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserLogin.aspx.cs" Inherits="UserLogin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/service.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
</head>
<body>
<form runat="server">
    <div class="self_window">
	<div class="self_window_top white font14 font-weight">用户登陆</div>
    <div class="self_window_c">
    <ul>
    	<li class="gray">办理自助服务，需要身份证。<br />请在下方输入软件用户名及密码。</li>
        <li><span class="font-weight font14">用户名：</span><asp:TextBox type="text" name="textfield" id="txtUname" style="width:160px" class="input1" runat="server"></asp:TextBox></li>
        <li><span class="font-weight font14">密&nbsp;&nbsp;码：</span><asp:TextBox  TextMode="Password" name="textfield" id="txtUpwd" style="width:160px" class="input1" runat="server"></asp:TextBox></li>
        <li><span class="font-weight font14">验证码：</span><asp:TextBox type="text" name="textfield" id="txtCode" style="width:80px" class="input1" runat="server"></asp:TextBox><img src="common/RegImg.aspx"
                            id="regImg" alt="请点击" /></li>
        <li>
            <asp:ImageButton ID="imgbtnOK" src="images/btn_login1.jpg" runat="server" 
                onclick="imgbtnOK_Click" />&nbsp;<img src="images/btn_cancel.jpg" onclick="CloseD()"/>&nbsp;<asp:ImageButton
                    src="images/btn_forget.jpg" border="0" runat="server" id="forget" 
                onclick="forget_Click"/></li>
    </ul>
    </div>
</div>
</form>
<script type="text/javascript">
    function CloseD() {
        this.parent.document.getElementById("loginFram").style.display = "none";
    }
    var uname = '';
    $(document).ready(function () {
        $('#forget').click(function () {
            uname = $('#txtUname').val();
            if (uname == '') {
                alert('用户名不能为空');
                return false;
            }
        });
        $('#regImg').click(function () {
            $("#regImg").attr("src", "common/RegImg.aspx?id=" + Math.random());
        });
        $('#imgbtnOK').click(function () {
            if ($('#txtUname').val() == '') {
                alert('用户名不能为空');
                return false;
            }
            if ($('#txtUpwd').val() == '') {
                alert('用户密码不能为空');
                return false;
            }
            if ($('#txtCode').val() == '') {
                alert('验证码不能为空');
                return false;
            }
        });
    });
</script>
</body>
</html>
